<select  name="fktableid" class="span2" >
	<option value="">点击选择关联子表字段</option>
	<#if tplist??>
		<#list tplist as tp>
			<option value="${tp.name!''}">${tp.name!''}</option>
		</#list>
		<#elseif cube?? && cube.metadata??>
			<#list cube.metadata as meta>
				<#if meta.mtype?? && meta.mtype == "0">
				<#else>
					<#if dim?? && dim.fktable?? && dim.fktable == meta.tb.tablename>
					<#list meta.tb.tableproperty as tp>
						<option value="${tp.fieldname!''}" <#if dim.fktableid?? && dim.fktableid==tp.fieldname>selected="true"</#if>>${tp.name!''}</option>
					</#list>
					</#if>
				</#if>
			</#list>
	</#if>
</select>

